package cn.trda.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import cn.trda.pojo.Logs;
import cn.trda.util.MySqlPageUtil;

public interface AsLogsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Logs record);

    int insertSelective(Logs record);

    Logs selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Logs record);

    int updateByPrimaryKey(Logs record);
    
    List<Logs> getList(@Param("logs") Logs logs,@Param("pt") MySqlPageUtil pt);
    
    @Select(value="select COUNT(1) FROM as_logs WHERE userId=#{userid}")
    int selectCount(Logs logs);
}